import 'package:route/route.dart';
import 'package:flutter_demo2/router_test/pages.dart' as test_page;
import 'home/pages.dart' as home_page;
import 'dio_test/pages.dart' as dio_page;
import 'ui/pages.dart' as ui;
import 'leak/my_leak_test/pages.dart' as my_leak;
import 'source_code_test/pages.dart' as source;

abstract class FlutterPages {
  // entry route
  static const appEntryPage = "/";

  // module
  static const _main = "main";
  static const _test = "test";
  static const _mine = "mine";

  static const loginPage = "$_mine/loginPage";

  static const homePage = "$_main/homePage";
  static const historyPage = "$_main/historyPage";
  static const settingPage = "$_main/settingPage";
  static const mePage = "$_main/mePage";

  static const testPageRoute = "$_test/testPageRoute";
  static const testPage1 = "$_test/page1";
  static const testPage2 = "$_test/page2";
  static const testPage3 = "$_test/page3";
  static const testDioPage = "$_test/testDioPage";
  static const testNestedScrollPage = "$_test/testNestedScrollPage";
  static const testUIPage = "$_test/testUIPage";
  static const testSourceCodePage = "$_test/testSourceCodePage";
  static const testFileCachePage = "$_test/testFileCachePage";
  static const testRemoveListItemPage = "$_test/testRemoveListItemPage";
  static const testVisibilityDetector = "$_test/testVisibilityDetector";
  static const testLeakPage1 = "$_test/testLeakPage1";
  static const testLeakPage2 = "$_test/testLeakPage2";
  static const testLeakConstPage = "$_test/testLeakConstPage";
  static const testLeakClosurePage = "$_test/testLeakClosurePage";
  static const testLeakAsyncPage = "$_test/testLeakAsyncPage";
  static const testBottomSheet = "$_test/testBottomSheetPage";
  static const testSwiperPage = "$_test/testSwiperPage";
  static const testInheritedWidget = "$_test/testInheritedWidget";
  static const testInheritedWidgetState = "$_test/testInheritedWidgetState";
  static const testInvertedClipper = "$_test/testInvertedClipper";
}

// register pages
List<RouteBuilder> pages = [
  ...test_page.pages,
  ...home_page.pages,
  ...dio_page.pages,
  ...ui.pages,
  ...my_leak.pages,
  ...source.pages,
];
